package com.wlhse.controller;

import com.wlhse.entity.QhseeCheckPersonPojo;
import com.wlhse.service.QhseeCheckPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController("QhseeCheckPersonController")
@RequestMapping("/api/v1")
public class QhseeCheckPersonController {

    @Resource
    private QhseeCheckPersonService qhseeCheckPersonService;

    @RequestMapping(value = "/queryCheckPersonByName",method = RequestMethod.GET,produces = "application/json; charset=utf-8")
    public String queryCheckPerson(@RequestParam(value = "checkPersonName") String checkPersonName){
        return qhseeCheckPersonService.queryCheckPersonByName(checkPersonName);
    }

}
